package com.kongwg.exer;

public class MyRectangle extends GeometricObject {
	private double width;
	private double heith;
	public MyRectangle() {
		super();
	}
	public MyRectangle(String color, double weigth,double width, double heith) {
		super(color,weigth);
		this.width = width;
		this.heith = heith;
	}
	public double getWidth() {
		return width;
	}
	public void setWidth(double width) {
		this.width = width;
	}
	public double getHeith() {
		return heith;
	}
	public void setHeith(double heith) {
		this.heith = heith;
	}
	
	
	@Override
	public double findArea() {
		// TODO Auto-generated method stub
		return 2*(width* heith + width *width + heith * heith);
	}
	
	
	
	
	
}
